package top.psjj.news.service;

import top.psjj.news.po.TNews;

import java.util.List;

/**
 * @Auther: 胖叔讲java
 * @Date: 2022/6/8 - 06 - 08 - 15:42
 * @Decsription: top.psjj.news.service
 * @version: 1.0
 */
public interface NewsService {
    void add(TNews news) throws Exception;

    List<TNews> list(String sql) throws Exception;

    void del(int id) throws Exception;

    void modify(TNews tNews) throws Exception;

    TNews queryTNewsById(int id) throws Exception;

    List<TNews> getImgList() throws Exception;

    TNews getHeader() throws Exception;

    List<TNews> getUpdateNews() throws Exception;

    List<TNews> getHotNews() throws Exception;

    TNews queryById(int id) throws Exception;
}
